﻿#region 信息

// Copyright©2014 Rex Rao all rights reserved.
// File name : Mojito\Mojito.Service\IDishesCategoryService.cs
// Author : Sohobloo
// Create time : 2014/08/19 10:32
// Update time : 2014/08/19 11:21

#endregion

#region 引用

using System;
using System.Collections.Generic;
using Mojito.Entity;
using Sohobloo.SoCommon;

#endregion

namespace Mojito.Service
{
    public interface ITableService
    {
        Table Get(Guid tableId);

        IList<Table> GetList();

        OperationResult Add(string tableName, MinConsumptionType minConsumptionType, double? minConsumptionAmount);

        OperationResult Update(Guid tableId, string tableName, MinConsumptionType minConsumptionType, double? minConsumptionAmount);

        OperationResult Delete(Guid tableId);

        OperationResult SortAfter(Guid tableId, Guid? prevTableId);
    }
}